DimenDensityDp

EN Utility object for handling SDP (Scalable Dp) dimensions from Java.

PT Objeto utilitário para manipulação de dimensões SDP (Scalable Dp) no Java.

Functions

Link copied to clipboard
fun dhdp(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp). PT Resolução rápida para Altura da Tela (hdp).

Link copied to clipboard
fun dhdpa(context: Context, value: Int): Float
Link copied to clipboard
fun dhdpi(context: Context, value: Int): Float
Link copied to clipboard
fun dhdpia(context: Context, value: Int): Float
Link copied to clipboard
fun dhdpLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in landscape orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun dhdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun dhdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun dhdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun dhdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with UiModeType override.

Link copied to clipboard
fun dhdpPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (hdp), but in portrait orientation it acts as Screen Width (wdp).

Link copied to clipboard
fun dhdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun dhdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun dhdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun dhdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) conditional scaling.

Link copied to clipboard
fun dhdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.HEIGHT, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (hdp) with rotation override.

Link copied to clipboard
fun dhdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hDP) context conditional scaling.

Link copied to clipboard
fun dsdp(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp). PT Resolução rápida para Smallest Width (sdp).

Link copied to clipboard
fun dsdpa(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpa) with aspect ratio. PT Resolução rápida para Smallest Width (sdpa) com proporção de tela.

Link copied to clipboard
fun dsdpi(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpi) ignoring multi-windows. PT Resolução rápida para Smallest Width (sdpi) ignorando janelas múltiplas.

Link copied to clipboard
fun dsdpia(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdpia) ignoring multi-windows and with aspect ratio. PT Resolução rápida para Smallest Width (sdpia) ignorando janelas múltiplas e com proporção.

Link copied to clipboard
fun dsdpLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Altura da Tela (hdp).

Link copied to clipboard
fun dsdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in landscape orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação paisagem atua como Largura da Tela (wdp).

Link copied to clipboard
fun dsdpLwa(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpLwi(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpLwia(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with UiModeType override.

Link copied to clipboard
fun dsdpPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Height (hdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Altura da Tela (hdp).

Link copied to clipboard
fun dsdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sdp), but in portrait orientation it acts as Screen Width (wdp). PT Resolução rápida para Smallest Width (sdp), mas na orientação retrato atua como Largura da Tela (wdp).

Link copied to clipboard
fun dsdpPwa(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpPwi(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpPwia(context: Context, value: Int): Float
Link copied to clipboard
fun dsdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) conditional scaling.

Link copied to clipboard
fun dsdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.SMALL_WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (sdp) with rotation override.

Link copied to clipboard
fun dsdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swDP) context conditional scaling.

Link copied to clipboard
fun dwdp(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp). PT Resolução rápida para Largura da Tela (wdp).

Link copied to clipboard
fun dwdpa(context: Context, value: Int): Float
Link copied to clipboard
fun dwdpi(context: Context, value: Int): Float
Link copied to clipboard
fun dwdpia(context: Context, value: Int): Float
Link copied to clipboard
fun dwdpLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in landscape orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun dwdpLha(context: Context, value: Int): Float
Link copied to clipboard
fun dwdpLhi(context: Context, value: Int): Float
Link copied to clipboard
fun dwdpLhia(context: Context, value: Int): Float
Link copied to clipboard
fun dwdpMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with UiModeType override.

Link copied to clipboard
fun dwdpPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (wdp), but in portrait orientation it acts as Screen Height (hdp).

Link copied to clipboard
fun dwdpPha(context: Context, value: Int): Float
Link copied to clipboard
fun dwdpPhi(context: Context, value: Int): Float
Link copied to clipboard
fun dwdpPhia(context: Context, value: Int): Float
Link copied to clipboard
fun dwdpQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) conditional scaling.

Link copied to clipboard
fun dwdpRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.WIDTH, orientation: Orientation = Orientation.LANDSCAPE, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (wdp) with rotation override.

Link copied to clipboard
fun dwdpScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wDP) context conditional scaling.

Link copied to clipboard
fun getDimensionInDp(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic DP scaling function for Java. PT Função de escala DP genérica para Java.

Link copied to clipboard
fun getDimensionInPx(context: Context, qualifier: DpQualifier, value: Int, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java. PT Função de escala genérica para Java.

Link copied to clipboard
fun scaled(initialBaseValue: Float): DimenDensity

EN Starts the build chain for the custom dimension DimenDensity from a base Float.

fun scaled(initialBaseValue: Int): DimenDensity

EN Starts the build chain for the custom dimension DimenDensity from a base Int. PT Inicia a cadeia de construção para a dimensão customizada DimenDensity a partir de um Int base.

Link copied to clipboard

EN Eagerly initializes DimenCache (persistence / DataStore) so the first resolution on a hot path avoids lazy-init work. PT Inicializa o DimenCache antecipadamente para evitar custo lazy no primeiro uso.